package com.tianji.api.client.remark;

import com.tianji.api.client.remark.fallback.RemarkClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author Yandel
 * @date 2025/5/22 下午7:11
 * @description: remark的Client接口
 *
 * 函数式接口
 */
@FeignClient(name = "remark-service" ,fallbackFactory = RemarkClientFallBack.class)//被调用方的服务器名
public interface RemarkClient {
    //feign 接口   对外暴露的接口
    @PostMapping("/likes/list")
    public Set<Long> getLikesStatusByBizIds(@RequestParam("bizIds") List<Long> bizIds);

}
